package com.mes_for_xxxxxx.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车间信息表，存储车间相关信息
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("workshop")
@ApiModel(value="Workshop对象", description="车间信息表，存储车间相关信息")
public class Workshop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车间编码，用于唯一标识车间")
    @TableId(value = "room_Code", type = IdType.AUTO)
    private String roomCode;

    @ApiModelProperty(value = "车间名称")
    private String roomName;

    @ApiModelProperty(value = "车间面积，单位为平方米")
    private BigDecimal area;

    @ApiModelProperty(value = "负责人姓名，可选字段")
    private String responsiblePerson;

    @ApiModelProperty(value = "是否启用，1为启用，0为禁用")
    private Boolean isActive;

    @ApiModelProperty(value = "备注信息，可选字段，用于记录车间的其他信息")
    private String remark;

    @ApiModelProperty(value = "工序的外键，每个车间对应一个确认工序")
    private Integer produceId;

    @ApiModelProperty(value = "创建时间，可选字段，记录车间信息的创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间，可选字段，记录车间信息的最后更新时间")
    private LocalDateTime updateTime;


}
